﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.InputDto._20220620
{
    /// <summary>
    /// 保存店铺动态点赞
    /// </summary>
    public class InputSaveStoreNewsStar
    {
        /// <summary>
        /// 登录用户编码
        /// </summary>
        [Required(ErrorMessage = "userid：用户编码必传项！")]
        public string userid { get; set; }
        /// <summary>
        /// 店铺动态id
        /// </summary>
        [Required(ErrorMessage = "newID：店铺动态id必传项！")]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确店铺id")]//大于0正则表达式
        public int newID { get; set; }
        /// <summary>
        /// 是否点赞0=取消点赞，1=加点赞
        /// </summary>
        [Required(ErrorMessage = "status：状态必传项！")]
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输状态【0，1】！")]
        public int status { get; set; }
    }
}
